home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / network / apple / GetMyIPAddr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-05  |  980 b   |  47 lines  |  [TEXT/R*ch]

  1. /*
  2.     File:        GetMyIPAddr.h
  3.  
  4.     Copyright:    © 1984-1993 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef __GETMYIPADDR__
  13. #define __GETMYIPADDR__
  14.  
  15. #ifndef __MACTCPCOMMONTYPES__
  16. #include <MacTCPCommonTypes.h>
  17. #endif
  18.  
  19. #define ipctlGetAddr 15            /* csCode to get our IP address */
  20.  
  21. #define GetIPParamBlockHeader     \
  22.     struct QElem *qLink;         \
  23.     short qType;                 \
  24.     short ioTrap;                 \
  25.     Ptr ioCmdAddr;                 \
  26.     ProcPtr ioCompletion;         \
  27.     OSErr ioResult;             \
  28.     StringPtr ioNamePtr;         \
  29.     short ioVRefNum;            \
  30.     short ioCRefNum;            \
  31.     short csCode
  32.  
  33. #if defined(powerc) || defined (__powerc)
  34. #pragma options align=mac68k
  35. #endif
  36. struct GetAddrParamBlock {
  37.     GetIPParamBlockHeader;        /* standard I/O header */    
  38.     ip_addr        ourAddress;        /* our IP address */
  39.     long        ourNetMask;        /* our IP net mask */
  40. };
  41. #if defined(powerc) || defined(__powerc)
  42. #pragma options align=reset
  43. #endif
  44.  
  45. #endif
  46.  
  47.